﻿using BasicInformation.ErrorCode;
using MediatR;
using SqlSugar;

namespace BasicInformation.ApiWrite.Application.Command.Product
{
    public class AddProductCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 产品编号(自动生产)
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 厂商编码
        /// </summary>
        public int ManufacturerCode { get; set; }
        /// <summary>
        /// 内部编码
        /// </summary>
        public string InternalCode { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specifications { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public int CategoryId { get; set; }
        /// <summary>
        /// 单位Id（主键唯一标识）
        /// </summary>
        public int UnitId { get; set; }
        /// <summary>
        /// 预警(下)
        /// </summary>
        public int EarlyXia { get; set; }
        /// <summary>
        /// 预警(上)
        /// </summary>
        public int EarlyShang { get; set; }
        /// <summary>
        /// 包装类型
        /// </summary>
        public string PackagingType { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public string Price { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public string Weight { get; set; }
        /// <summary>
        /// 默认供应商
        /// </summary>
        public string SupplierName { get; set; }
        /// <summary>
        /// 默认仓库
        /// </summary>
        public int DepotId { get; set; }
        /// <summary>
        /// 默认库位
        /// </summary>
        public int LocationId { get; set; }
        /// <summary>
        /// 默认客户
        /// </summary>
        public int ClientId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? CategoryRemark { get; set; }
    }
}
